/**
 * @flow
 * 页面参考: https://www.zcool.com.cn/work/ZMjYzOTEyMzI=.html
 */
import React from 'react'
// prettier-ignore
import {
  Text,
  View,
} from 'react-native'

import RxPage from '../../components/nav/RxPage'
import RxPicker from '../../components/picker/RxPicker'
import RxButtonBlue from '../../components/button/RxButtonBlue'

const Home = props => {
  return (
    <RxPage hiddenNavBar={true}>
      <Text>滚动消息提示</Text>
      <View>
        <View>跑图次数</View>
        <View>今日玉璧</View>
      </View>
      <Text>无障碍-权限-是否开启</Text>
      <View>
        <View>预设</View>
        <Text>敦煌配置</Text>
        <Text>悬浮框-显示diy</Text>
      </View>
      <Text>开启悬浮框</Text>
      <RxButtonBlue
        onPress={() => {
          console.log('111')
          // RxPicker.showNumCount({
          //   selectValue: '00:00',
          //   onChangeText: t => {
          //     console.log('picker.showNumCount value=', t)
          //   },
          // })
          RxPicker.showGuanXian({
            selectValue: '大将军',
            onChangeText: t => {
              console.log('picker.showGuanXian value=', t)
            },
          })
        }}>
        点击试试
      </RxButtonBlue>
      <Text>运行12121212</Text>
    </RxPage>
  )
}

export default Home
